// $bgColor: var(--myBgColor ,#c20c0c);
// $fontColor: var(--myFontColor ,#000);
@import "./global.scss";
//顶部区域，logo搜索框
.top-container {
  height: 55px;
  width: 100%;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  align-items: center;
  background: $bgColor;
  border-bottom: 3px solid #ec4141;
  .top-img{
    height: 100%;
    width: 200px;
    color: #fff;
    font-family: monospace;
    font-size: 18px;
    font-weight: bold;
    background:$bgColor;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
  }
  .top-btn{
    padding-left: 10px;
    width: 100px;
    -webkit-box-pack: start;
    -ms-flex-pack: start;
    justify-content: flex-start;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    display: flex;
    .btn{
      font-weight: 600;
      height: 25px;
      width: 25px;
      margin: 0 5px;
      color: #f0f0f0;
      background-color:  $bgColor;
      opacity: 0.5;
      -webkit-box-pack: center;
      -ms-flex-pack: center;
      justify-content: center;
      -webkit-box-align: center;
      -ms-flex-align: center;
      align-items: center;
      display: flex;
      border-radius: 50%;
      cursor: pointer;
      &:hover{
        background-color:  $fontColor;
      }
      i{
        font-size: 12px;
      }
    }
  }
  .top-search{
    display: flex;
    align-items: center;
    .el-input__inner {
      border-radius: 20px;
    }
  }
  .top-theme{
    margin-left: auto;
    padding-right: 10px;
    i{
      cursor: pointer;
      border-radius: 50%;
    }
    i:first-child{
      color: $themeColor;
    }
    i:nth-child(2){
      color: $themeColor;
    }
  }
}

// 主题左边导航栏部分
.container{
  height: calc(100% - 125px);
  width: 100%;
  display: flex;
  .nav{
    width: 200px;
    height: 100%;
    background: $bodyColor;
    ul {
      padding-top: 3px;
      width: 100%;
      height: 100%;
      -webkit-box-sizing: border-box;
      box-sizing: border-box;
      border-right: 1px solid #ccc;
      li{
        width: 80%;
        height:40px;
        margin: 5px auto;
        line-height: 40px;
        list-style: none;
        text-align: left;
        -webkit-transition: .5s;
        transition: .5s;
        -webkit-box-sizing: border-box;
        box-sizing: border-box;
        a{
          color:$fontColor;
          border-radius: 5px;
          font-size: 14px;
          background-color: $bodyColor;
          font-style:normal;
          width: 100%;
          height: 40px;
          display: -webkit-box;
          display: -ms-flexbox;
          display: flex;
          -webkit-box-pack: center;
          -ms-flex-pack: center;
          justify-content: center;
          -webkit-box-align: center;
          -ms-flex-align: center;
          align-items: center;
          -webkit-box-sizing: border-box;
          box-sizing: border-box;
          &:hover{
            cursor: pointer;
            background: $hoverColor;
            border-radius: 5px;
          }
          &:hover span i{
            color: $fontColor;
          }
          span{
            display: inline-block;
            width: 120px;
            height: 40px;
            text-align: left;
            i{
              font-style: normal;
              font-family: 'Microsoft YaHei';
            }
            i:first-child{
              padding-right: 8px
            }
            i:last-child{
              padding-right: 20px
            }
          }
        }
        .router-link-active{
          color: $fontColor;
          border-radius: 5px;    
          background-color: $hoverColor;
          box-sizing: border-box;
          span i {
            font-weight: bold;
            font-size: 16px;
          }
        }
      }
    }
  }
  .main{
    width: calc(100% - 200px);
    height: 100%;
    .el-scrollbar__wrap {
      overflow-x: hidden;
    }
    
  }
}
